export let MODULES = {
  name: '组件',
  list: [
    {
      name: '组件隐藏',
      event: 'hidenModule',
      explain: '将表单项组件状态切换为隐藏状态。无传递数据。',
      extension: {
        moduleId: {
          type: 'exTreeSelect',
          name: '组件选择',
          value: [],
          hasCheckbox: true,
          treeData: '$getPageModules',
          filter: 'FORM_ITEMS',
        },
      },
    },
    {
      name: '组件显示',
      event: 'showModule',
      explain: '将表单项组件状态切换为显示状态。无传递数据。',
      extension: {
        moduleId: {
          type: 'exTreeSelect',
          name: '组件选择',
          value: [],
          hasCheckbox: true,
          treeData: '$getPageModules',
          filter: 'FORM_ITEMS',
        },
      },
    },
    {
      name: '组件禁用',
      event: 'disabledModule',
      explain: '将表单项组件状态切换为禁用状态。无传递数据。',
      extension: {
        moduleId: {
          type: 'exTreeSelect',
          name: '组件选择',
          value: [],
          hasCheckbox: true,
          treeData: '$getPageModules',
          filter: 'FORM_ITEMS',
        },
      },
    },
    {
      name: '组件启用',
      event: 'enableModule',
      explain: '将表单项组件状态切换为启用状态。无传递数据。',
      extension: {
        moduleId: {
          type: 'exTreeSelect',
          name: '组件选择',
          value: [],
          hasCheckbox: true,
          treeData: '$getPageModules',
          filter: 'FORM_ITEMS',
        },
      },
    },
    {
      name: '请求数据',
      event: 'requestData',
      explain: '触发组件的数据重新请求。无传递数据。',
      extension: {
        moduleId: {
          type: 'exTreeSelect',
          name: '组件选择',
          value: [],
          hasCheckbox: true,
          treeData: '$getPageModules',
          filter: 'REQUEST_DATA_ITEMS',
        },
      },
    },
    {
      name: '打开抽屉',
      event: 'openDrawer',
      explain: '触发抽屉打开事件。无传递数据。',
      extension: {
        moduleId: {
          type: 'exTreeSelect',
          name: '组件选择',
          value: [],
          hasCheckbox: true,
          treeData: '$getPageModules',
          filter: 'uiDrawer',
        },
      },
    },
    {
      name: '阻止聚焦下一个组件',
      event: 'defaultFocusNextModule',
      explain: '阻止组件的回车聚焦下一个组件动作，使焦点保持在当前组件（仅在回车事件中有效）。无传递数据。',
    },
    {
      name: '聚焦组件',
      event: 'focusModule',
      explain: '使选择的组件聚焦。无传递数据。',
      extension: {
        moduleId: {
          type: 'exTreeSelect',
          name: '组件选择',
          value: [],
          hasCheckbox: false,
          treeData: '$getPageModules',
          filter: 'FOCUS_MODULE_ITEMS',
        },
      },
    },
    {
      name: '聚焦组件并回车',
      event: 'focusModuleAndEnter',
      explain: '使选择的组件聚焦并触发组件的回车事件。无传递数据。',
      extension: {
        moduleId: {
          type: 'exTreeSelect',
          name: '组件选择',
          value: [],
          hasCheckbox: false,
          treeData: '$getPageModules',
          filter: 'FOCUS_MODULE_ITEMS',
        },
      },
    },
    {
      name: '清空参数',
      event: 'clearFormData',
      explain: '清空组件的formData参数并停止接口的自动调用。无传递数据。',
      extension: {
        moduleId: {
          type: 'exTreeSelect',
          name: '组件选择',
          value: [],
          hasCheckbox: false,
          treeData: '$getPageModules',
          filter: 'uiFlowChart',
        },
      },
    },
    {
      name: '打开导入弹框',
      event: 'openTolead',
      explain: '是否打开导入弹框',
      extension: {
        moduleId: {
          type: 'exTreeSelect',
          name: '组件选择',
          value: [],
          hasCheckbox: false,
          treeData: '$getPageModules',
          filter: 'uiTolead',
        },
      },
    },
    {
      name: '开启接口循环',
      event: 'openRequestLoop',
      explain: '开启组件的接口循环调用',
      extension: {
        moduleId: {
          type: 'exTreeSelect',
          name: '组件选择',
          value: [],
          hasCheckbox: true,
          treeData: '$getPageModules',
          filter: 'uiPrintLog',
        },
      },
    },
    {
      name: '关闭接口循环',
      event: 'shutRequestLoop',
      explain: '关闭组件的接口循环调用',
      extension: {
        moduleId: {
          type: 'exTreeSelect',
          name: '组件选择',
          value: [],
          hasCheckbox: true,
          treeData: '$getPageModules',
          filter: 'uiPrintLog',
        },
      },
    },
  ],
}
